package com.iot.ic.dao;

import com.iot.ic.model.Device;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceMapper {
    int deleteByPrimaryKey(Integer deviceId);

    int insert(Device record);

    int insertSelective(Device record);

    Device selectByPrimaryKey(Integer deviceId);

    int updateByPrimaryKeySelective(Device record);

    int updateByPrimaryKey(Device record);

    Device selectByInfos(Device device);

    List<Device> selectAllDevice();
    
    List<Device> listDeviceByTeamId(Integer teamId);
}